<ion-header>
  <ion-navbar>
    <ion-title>
      签字
    </ion-title>
  </ion-navbar>
</ion-header>
<ion-content class="sign">
  <button *ngIf="showDetailMaint" ion-button block outline class="showMaint" (click)="gotoMaint()">点击查看本次维保项</button>
  <div *ngIf="ElevaType=='notice'">
    <p class="tit">
      维保总结:
    </p>
    <div class="area">
      <ion-textarea readonly="true" type="text" [(ngModel)]="summary" placeholder="没有" rows="8"></ion-textarea>
    </div>
    <p class="tit">
      维保提出调整和更换易损件等情况说明:
    </p>
    <div class="area">
      <ion-textarea type="text" readonly="true" [(ngModel)]="changeInfo" placeholder="没有" rows="8"></ion-textarea>
    </div>
    <!-- <p class="tit">
      维保人员工作总结:
    </p>
    <div class="area">
      <ion-textarea type="text" [(ngModel)]="suggest" placeholder="输入意见" rows="8"></ion-textarea>
    </div> -->
    <p class="tit">
      您的意见:
    </p>
    <div class="area">
      <ion-textarea [disabled]="safeUserSignId2!=null&&safeUserSignId2!=''&&safeUserSignId2!='null'" type="text"
        [(ngModel)]="suggest" placeholder="请输入" rows="8"></ion-textarea>
    </div>
  </div>
  <div *ngIf="safeUserSignId2!=null&&safeUserSignId2!='null'" class="area">
    <div class="content">
      <p>安全管理员签名:</p>
      <img *ngIf="safeUserSignId2!=null&&safeUserSignId2!='null'" width="100%" height="200px" src="{{safeUserSignId2}}" />
    </div>
  </div>

  <div *ngIf="ElevaType=='daily'||ElevaType=='notice'" class="area">
    <p style="line-height: 18px; font-size: 14px;">
      <img style="vertical-align: middle; display: inline-block; width: 18px; margin-right: 4px;" src="assets/icon/icon_remind.png">请签字后保存</p>
    <signatrue [inValue]="time1" (outPut)="getImgUrl1($event)"></signatrue>
  </div>

  <div *ngIf="ElevaType!='daily'&&ElevaType!='notice'">
    <div *ngIf="safeUserSignId2==null||safeUserSignId2=='null'" class="area">
      <ion-item>
        <ion-label>第二维保人员:</ion-label>
        <ion-select [(ngModel)]="maintUser2" placeholder="请选择" cancelText="取消" okText="确定">
          <ion-option  *ngFor="let user of userList" value="{{user.id}}">{{user.userName}}</ion-option>
        </ion-select>
      </ion-item>
    </div>
    <div *ngIf="safeUserSignId2==null||safeUserSignId2=='null'" class="area">
      <p style="line-height: 18px; font-size: 14px;">
        <img style="vertical-align: middle; display: inline-block; width: 18px; margin-right: 4px;" src="assets/icon/icon_remind.png">维保人员一，签字</p>
      <signatrue [inValue]="time1" (outPut)="getImgUrl1($event)"></signatrue>
    </div>
    <div *ngIf="safeUserSignId2==null||safeUserSignId2=='null'" class="area">
      <p style="line-height: 18px; font-size: 14px;">
        <img style="vertical-align: middle; display: inline-block; width: 18px; margin-right: 4px;" src="assets/icon/icon_remind.png">维保人员二，签字</p>
      <signatrue [inValue]="time2" (outPut)="getImgUrl2($event)"></signatrue>
    </div>
  </div>
  <button *ngIf="safeUserSignId2==null||safeUserSignId2=='null'" ion-button full class="btn" (click)="doConfirm()">提交</button>
</ion-content>